package com.ybk.zs.service.impl;

import com.ybk.zs.dao.CustomerCostMapper;
import com.ybk.zs.domain.CustomerCost;
import com.ybk.zs.domain.CustomerCostExample;
import com.ybk.zs.service.ICustomerCostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2016/9/6.
 */
@Service
public class CustomerCostService implements ICustomerCostService{

    @Autowired(required = false)
    private CustomerCostMapper customerCostMapper;

    @Override
    public int countByExample(CustomerCostExample example) {
        return this.customerCostMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(CustomerCostExample example) {
        return this.customerCostMapper.deleteByExample(example);
    }

    @Override
    public int insert(CustomerCost record) {
        return this.customerCostMapper.insert(record);
    }

    @Override
    public int insertSelective(CustomerCost record) {
        return this.customerCostMapper.insertSelective(record);
    }

    @Override
    public List<CustomerCost> selectByExample(CustomerCostExample example) {
        return this.customerCostMapper.selectByExample(example);
    }

    @Override
    public int updateByExampleSelective(CustomerCost record, CustomerCostExample example) {
        return this.customerCostMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(CustomerCost record, CustomerCostExample example) {
        return this.customerCostMapper.updateByExample(record,example);
    }
}
